import { LAYOUT } from '@/router/constant'
import type { RouteRecordRaw } from 'vue-router'

const deviceRoute: RouteRecordRaw = {
  path: '/system/device-maintenance',
  component: LAYOUT,
  meta: {
    noAuth: true
  },
  children: [
    {
      path: 'project',
      name: 'system-device-maintenance-project',
      meta: {
        title: '设备配置',
        noAuth: true
      },
      component: () => import('@/views/system/device-maintenance/project.vue')
    },
    {
      path: 'part',
      name: 'system-device-maintenance-part',
      meta: {
        title: '部件配置',
        noAuth: true
      },
      component: () => import('@/views/system/device-maintenance/PartView.vue')
    },
    {
      path: 'polling-task',
      name: 'system-device-maintenance-polling-task',
      meta: {
        title: '部件轮询',
        noAuth: true
      },
      component: () => import('@/views/system/device-maintenance/PollingTaskView.vue')
    },
    {
      path: 'check-list',
      name: 'system-device-maintenance-check-list',
      meta: {
        title: '校验列表',
        noAuth: true
      },
      component: () => import('@/views/system/device-maintenance/check-list.vue')
    },
    {
      path: 'come-group',
      name: 'system-device-maintenance-come-group',
      meta: {
        title: '项目群组',
        noAuth: true
      },
      component: () => import('@/views/system/device-maintenance/ComeGroupView.vue')
    }
  ]
}

export default deviceRoute
